package br.com.trophy.parsing;

import android.os.Parcel;
import android.os.Parcelable;

public class Game implements Parcelable
{
	// ==========================================================================
	// Atributos de classe
	// ==========================================================================
	private String id;
	private String name;
	private String percDone;
	private String pic;
	private String bigPic;
	private String countTrophies;
	private String countBronze;
	private String countSilver;
	private String countGold;
	private String countPlatinum;
	private String type;
	private String date;

	// ==========================================================================
	// Gets e Sets
	// ==========================================================================
	public String getId()
	{
		return id;
	}
	public void setId( String string )
	{
		this.id = string;
	}
	public String getName()
	{
		return name;
	}
	public void setName( String name )
	{
		this.name = name;
	}
	public String getPercDone()
	{
		return percDone;
	}
	public void setPercDone( String string )
	{
		this.percDone = string;
	}
	public String getPic()
	{
		return pic;
	}
	public void setPic( String pic )
	{
		this.pic = pic;
	}
	public String getBigPic()
	{
		return bigPic;
	}
	public void setBigPic( String bigPic )
	{
		this.bigPic = bigPic;
	}
	public String getCountTrophies()
	{
		return countTrophies;
	}
	public void setCountTrophies( String count )
	{
		this.countTrophies = count;
	}
	public String getCountBronze()
	{
		return countBronze;
	}
	public void setCountBronze( String string )
	{
		this.countBronze = string;
	}
	public String getCountSilver()
	{
		return countSilver;
	}
	public void setCountSilver( String string )
	{
		this.countSilver = string;
	}
	public String getCountGold()
	{
		return countGold;
	}
	public void setCountGold( String string )
	{
		this.countGold = string;
	}
	public String getCountPlatinum()
	{
		return countPlatinum;
	}
	public void setCountPlatinum( String string )
	{
		this.countPlatinum = string;
	}
	public String getType()
	{
		return type;
	}
	public void setType( String type )
	{
		this.type = type;
	}
	public String getdate()
	{
		return date;
	}
	public void setDate( String date )
	{
		this.date = date;
	}

	// ==========================================================================
	// Construtores
	// ==========================================================================
	public Game()
	{
	}
	// ==========================================================================
	public Game( Parcel in )
	{
		readFromParcel( in );
	}
	// ==========================================================================
	// Metodos da Interface Parceable
	// ==========================================================================
	public int describeContents()
	{
		// TODO Auto-generated method stub
		return 0;
	}
	// ==========================================================================
	public void writeToParcel( Parcel dest, int flags )
	{
		dest.writeString( id );
		dest.writeString( name );
		dest.writeString( percDone );
		dest.writeString( pic );
		dest.writeString( bigPic );
		dest.writeString( countTrophies );
		dest.writeString( countBronze );
		dest.writeString( countSilver );
		dest.writeString( countGold );
		dest.writeString( countPlatinum );
		dest.writeString( type );
		dest.writeString( date );
	}
	// ==========================================================================
	private void readFromParcel( Parcel in )
	{
		id 				= in.readString();
		name 			= in.readString();
		percDone 		= in.readString();
		pic 			= in.readString();
		bigPic 			= in.readString();
		countTrophies 	= in.readString();
		countBronze 	= in.readString();
		countSilver 	= in.readString();
		countGold 		= in.readString();
		countPlatinum 	= in.readString();
		type 			= in.readString();
		date 			= in.readString();		
	}
	// ==========================================================================
    @SuppressWarnings ( "rawtypes")
	public static final Parcelable.Creator CREATOR = new Parcelable.Creator() 
    {  
        public Game createFromParcel(Parcel in) 
        {  
            return new Game(in);  
        }  
        public Game[] newArray(int size) 
        {  
            return new Game[size];  
        }  
    };  
}
